﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace IniTechCaash.WebApplication.Models
{
    public abstract class EntityViewModel
    {
        public int Id { get; set; }
    }

    public abstract class AuditableEntityViewModel : EntityViewModel
    {
        public string CreatedBy { get; set; }
        public DateTime CreatedDate { get; set; }
        public virtual string Descriptive
        {
            get { throw new NotImplementedException(); }
        }
        public virtual string DescriptiveId
        {
            get { return String.Join("-", Descriptive, Id); }
        }
        public string LastModifiedBy { get; set; }
        public DateTime LastModifiedDate { get; set; }
    }
}